package com.evl.api.common.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.evl.api.common.service.ICityService;
import com.evl.common.persistence.dao.CityMapper;
import com.evl.common.persistence.model.City;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author weijunlong
 * @since 2017-07-07
 */
@Service
public class CityServiceImpl extends ServiceImpl<CityMapper, City> implements ICityService {

	@Resource
	CityMapper cityMapper;
	
	
	@Override
	public List<City> getCityList() {
		return cityMapper.getCityList();
	}
	
	@Override
	public String getCityCodeByName(String cityName) {
		return cityMapper.getCityCodeByName(cityName);
	}


	@Override
	public String getCityNameByCode(String cityCode) {
		return cityMapper.getCityNameByCode(cityCode);
	}
	
}
